
<template>
    <rx-dialog @handOk="handleSubmit" @cancel="cancel">
        <rx-layout>
            <div slot="center">
                <a-form-model ref="form"  :model="mdl" :rules="rules" :label-col="labelCol" :wrapper-col="wrapperCol">
                                <a-form-model-item  :label="i18n('form.createByName','创建人名称')" prop = "createByName">
                                        <a-input :placeholder="i18n('form.createByName','创建人名称','input')" v-model="mdl.createByName"/>
                                </a-form-model-item>
                                <a-form-model-item  :label="i18n('form.genRecord','生成记录ID')" prop = "genRecord">
                                        <a-input :placeholder="i18n('form.genRecord','生成记录ID','input')" v-model="mdl.genRecord"/>
                                </a-form-model-item>
                                <a-form-model-item  :label="i18n('form.listId','列表ID')" prop = "listId">
                                        <a-input :placeholder="i18n('form.listId','列表ID','input')" v-model="mdl.listId"/>
                                </a-form-model-item>
                                <a-form-model-item  :label="i18n('form.listName','列表名称')" prop = "listName">
                                        <a-input :placeholder="i18n('form.listName','列表名称','input')" v-model="mdl.listName"/>
                                </a-form-model-item>
                </a-form-model>


            </div>
        </rx-layout>
    </rx-dialog>
</template>
<script>
    import FormDownloadRecordApi from '@/api/form/core/formDownloadRecord'
    import {RxDialog,BaseFormModel} from "@lowcode/jpaas-common-lib";


    export default {
        name: 'FormDownloadRecordEdit',
        mixins:[BaseFormModel],
        components: {
            RxDialog,
        },
        data(){
            return {
                /**
                 * 子表列表，以及表格属性
                 */
                subTable:{
        },
            rules: {
                createByName: [{ required:false,message:this.i18n('form.createByName','创建人名称','input'), trigger: 'change' }],
                genRecord: [{ required:false,message:this.i18n('form.genRecord','生成记录ID','input'), trigger: 'change' }],
                listId: [{ required:false,message:this.i18n('form.listId','列表ID','input'), trigger: 'change' }],
                listName: [{ required:false,message:this.i18n('form.listName','列表名称','input'), trigger: 'change' }],
            }
        }

        },
        methods: {
            i18n(name,text,key){
                return this.$ti18(name,text,"FormDownloadRecord",key);
            },
            get(id){
                return FormDownloadRecordApi.get(id);
            },

            save(){
                return FormDownloadRecordApi.save(this.mdl);
            },

        }
    }
</script>
<style>
    .relick a{
        margin-right: 10px;
    }

</style>
